<?php

/**
 * User Filter
 */

class Application_Form_UserFilterForm extends Zend_Form
{
    public function init()
    {   
        $iscrizionesModel = new Application_Model_Iscriziones();
        $arrayNames = $iscrizionesModel->createArrayUserNames();
        // users element
        $users = $this->createElement('select', 'users');
        //partecipanti element opptions
        $users->setLabel('Scegli l\'utente: ');
        $users->setRequired(FALSE);
        $users->setMultiOptions($arrayNames);
        // Add partecipanto to the form
        $this->addElement($users);
        
        //Submit button
        $this->addElement('submit', 'submit',
                array('label' => 'Filtra'));
    }
}
